package com.lenovo.android.syncacc.controller;



import android.accounts.Account;
import android.content.Context;

import com.lenovo.android.syncacc.MyAndroidAccountManager;
import com.lenovo.android.syncacc.R;

public class MyAndroidController {
	
	static private Context mContext;
	
	public MyAndroidController(Context context){
		this.mContext = context;
	}
	
	 public static Account getNativeAccount() {
	        return getNativeAccount(mContext);
	    }

	    /**
	     * Retrieve the Android account reference from the native account manager.
	     *
	     * @param context
	     * @return
	     */
	    public static Account getNativeAccount(Context context) {
	        if(context == null) {
	            return null;
	        }
	        return MyAndroidAccountManager.getNativeAccount(context);
	    }
}
